<style>
.weui_cell_bd {
    padding: 0;
	min-height:1.6rem;
	line-height:1.6rem;
}
.weui_cell_hd {min-width:3.7rem;padding: 0 4px;}
.weui_input {padding:0}
</style>
<div class='fui-page fui-page-current page-commission-register'>
	<img style="width:100%;position: relative" ng-src="{{tomedia(pagedata.applyset.regbg) || '../addons/jy_weishop/resource/images/agent-top.jpg'}}" />
    <div class='fui-content'>
        <div class="weui_cells weui_cells_form" style='margin-top:0'>
            <div class="fui-cell-title"style="padding:0.5rem 0.2rem">
                欢迎加入<span class='text-danger'>{{pagedata.setting.center || '分销平台'}}</span>，请填写完善信息
            </div>
            <div class='weui_cell'>
                <div class='weui_cell_hd must'>姓名</div>
                <div class='weui_cell_bd weui_cell_primary'><input type="text" class='weui_input' ng-model="pagedata.member.realname" placeholder="请填写真实姓名，用于结算" /></div>
            </div>
            <div class='weui_cell'>
                <div class='weui_cell_hd must'>手机号</div>
                <div class='weui_cell_bd weui_cell_primary'><input type="tel" class='weui_input' ng-model="pagedata.member.mobile" placeholder="请填写手机号码方便联系" /></div>
            </div>
            <div class='weui_cell'>
                <div class='weui_cell_hd'>微信号</div>
                <div class='weui_cell_bd weui_cell_primary'><input type="text" class='weui_input' ng-model="pagedata.member.wechat" placeholder="请填写微信号"  /></div>
            </div>
		</div>
		<div ng-if="pagedata.member.diyformfields.length>0" class="weui_cells_title">其他内容</div>
		<div class="weui_cells weui_cells_form" ng-repeat="item in pagedata.member.diyformfields">
									<div class="weui_cell"  ng-if="item.type == 1">
										<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
										<div class="weui_cell_bd weui_cell_primary">
											<input class="weui_input" type="text" ng-model="item.data" placeholder="输入{{item.title}}内容">
										</div>
									</div>	
									<div class="weui_cell" ng-if="item.type == 2">
										<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
										<div class="weui_cell_bd weui_cell_primary">
											<input class="weui_input" type="number" ng-model="item.data" placeholder="输入{{item.title}}内容">
										</div>
									</div>
									<div class="weui_cell" ng-if="item.type == 18">
									<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
									<div class="weui_cell_bd weui_cell_primary">
										<input class="weui_input" type="number" ng-model="item.data" value="{{item.data || '0.00'}}" placeholder="输入{{item.title}}内容">
									</div>
									</div>

									<div class="weui_cell" ng-if="item.type == 3">
										<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
										<div class="weui_cell_bd weui_cell_primary">
											<ul class="weui_uploader_files" ng-if="item.data">
												  <li class="weui_uploader_file" style="background-image:url({{tomedia(item.data)}})"></li>
											</ul>
											<div class="weui_uploader_input_wrp">
												 <input class="weui_uploader_input" ng-model="item.data" ng-click="up_file(item,'data','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
											</div>
										</div>
									</div>
									<div class="weui_cell" ng-if="item.type == 8">
											<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
											<div class="weui_cell_bd weui_cell_primary">
												<input class="weui_input" type="number" ng-model="item.data" placeholder="输入{{item.title}}内容">
											</div>
									</div>
									<div ng-if="item.type == 9" class="weui_cell">
											<div ng-class="{'weui_cell_hd':1,'must':item.ismust==1}"><label class="weui_label">{{item.title}}</label></div>
											<div class="weui_cell_bd weui_cell_primary">
												<input class="weui_input" type="text" ng-model="item.data" placeholder="输入{{item.title}}内容">
											</div>
									</div>
									<div ng-if="item.type == 4" class="weui_cells_title">{{item.title}}</div>
									<div ng-if="item.type == 4" class="weui_cells weui_cells_radio2" style="padding:0">
											<label class="weui_cell weui_check_label dashed" ng-repeat="(key,value) in item.value">
												<div class="weui_cell_bd weui_cell_primary">
													<span style="float:left;width:100%">{{value.title}}</span>
												</div>
												<div class="weui_cell_ft" href="javascript:;"  ng-click="item.data=value.title;">
													<input type="radio" class="weui_check" name="radio1">
													<span class="weui_icon_checked"></span>
												</div>
											</label>
									</div>	
									<div ng-if="item.type == 5" class="weui_cells_title">{{item.title}}</div>
									<div ng-if="item.type == 5" class="weui_cells weui_cells_checkbox" style="padding:0">
											<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem" ng-repeat="(key,value) in item.value">
												<input type="checkbox" ng-click="duoxuans(value.title,item,'data')" class="fui fui-checkbox fui-checkbox-danger verify-checkbox" value="{{value.title}}" id="s11"> {{value.title}}
											</div>
									</div>
									<div ng-if="item.type == 6" class="weui_cells_title">{{item.title}}</div>
									<div ng-if="item.type == 6" class="weui_cells weui_cells_form" style="padding:0">
									<div class="weui_cell">
											<div class="weui_cell_bd weui_cell_primary">
												<textarea class="weui_textarea" ng-model="item.data" placeholder="请输入{{item.title}}" rows="2"></textarea>
												<div class="weui_textarea_counter"><span>0</span>/118</div>
											</div>
										</div>
									</div>
									<div ng-if="item.type == 7" class="weui_cells_title">{{item.title}}</div>
									<div ng-if="item.type == 7" class="weui_cells weui_cells_form" style="padding:0">
										<div class="weui_cell">
											<div class="fui-cell-label" style="width:33%">
												<select ng-model="item.data.province" class="form-control tpl-province">
												<option value="" selected="selected">省份</option>
												<option ng-repeat="(value,data) in pagedata.extradata.province.province" value="{{value}}" ng-selected="item.data.province==value">{{value}}</option>
												</select>
											</div>
											<div class="fui-cell-label" style="width:33%">
												<select ng-model="item.data.city" class="form-control tpl-city">
												<option value="" selected="selected">城市</option>
												<option ng-repeat="(value,data) in pagedata.extradata.province.province[item.data.province]" value="{{value}}" ng-selected="item.data.city==value">{{value}}</option>
												</select>
											</div>
											<div class="fui-cell-label" style="width:33%">
												<select ng-model="item.data.district" class="form-control tpl-district">
												<option value="" selected="selected">区县</option>
												<option ng-repeat="(value,data) in pagedata.extradata.province.province[item.data.province][item.data.city]" value="{{value}}" ng-selected="item.data.district==value">{{value}}</option>
												</select>
											</div>
											<div class="fui-cell-label" style="width:28%">
												<select ng-model="item.data.street" class="form-control tpl-district">
												<option value="" selected="selected">街道</option>
												<option ng-repeat="value in pagedata.extradata.province.province[item.data.province][item.data.city][item.data.district]" value="{{value}}" ng-selected="item.data.street==value">{{value}}</option>
												</select>
											</div>
										</div>
								   </div>		
			</div>
            <div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">
                        <label class="checkbox-inline">
                            <input type="checkbox" class="fui fui-checkbox fui-checkbox-danger" ng-model="pagedata.member.agree" /> 我已经阅读并了解了<a id="btn-apply" ng-click="pagedata.show_content=true" style="color:#337ab7;">【{{pagedata.applyset.apply_title || '代理协议'}}】</a>。
                        </label>

                    </div>
                </div>

            </div>

            <div ng-show="pagedata.show_content" class="modal-bg pop-apply-hidden" >
                <div class="modal-content" style="top:10%;width:90%;left:5%">
                    <div class="closebtn" ng-click="pagedata.show_content=false" style="opacity:1;"><i class="icon icon-cuowu"></i></div>
                    <div class="news-body">
						<div class="title">{{pagedata.applyset.apply_title || '代理协议'}} / <small>Read &nbsp;Ggree</small></div>
                        <div class="text" ng-bind-html="trust(pagedata.applyset.apply_content)"></div>
                    </div>
					<div class="modal-footer">
                            <div ng-click="pagedata.show_content=false" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
                    </div>
                </div>
            </div>
        <div class='btn btn-danger block btn-submit' style="margin-top:2rem" ng-click="post(pagedata.member,'/info/apply/')">完善{{pagedata.setting.agent_title||'代理商'}}信息</div>
		</div>
	</div>
</div>

